package com.hs.srm.admin.modules.summary.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.hs.srm.admin.modules.orders.vo.ScmPoItemVo;
import com.hs.srm.admin.modules.summary.entity.VendorSummaryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
@Component
public interface VendorSummaryDao extends BaseMapper<VendorSummaryEntity> {
    //根据订单数量排序降序
    List<VendorSummaryEntity> selectByOrders(RowBounds rowBounds,
                                             @Param("ew") Wrapper<VendorSummaryEntity> wrapper, @Param("params") Map<String, Object> params);

    //根据订单金额排序降序
    List<VendorSummaryEntity> selectByPrice(RowBounds rowBounds,
                                            @Param("ew") Wrapper<VendorSummaryEntity> wrapper, @Param("params") Map<String, Object> params);

    //订单数量总和
    BigDecimal selectAllpoCounts();

    //根据条件查询查询数据
    List<VendorSummaryEntity> selectByConditions(String[] vendorIds);


}
